<!DOCTYPE html>
<html lang="en" ng-app="app">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
	<title>加入上新城市合伙人</title>
    <link rel="stylesheet" href="vender/ionic/css/ionic.min.css">
 	<link rel="stylesheet" href="css/font-awesome.min.css">
	<link rel="stylesheet" href="css/main.css">
    
    <script src="vender/ionic/js/ionic.bundle.min.js"></script>
    <script type="text/javascript" src="vender/leancloud.js"></script>
    <script type="text/javascript" src="vender/config.js"></script>
    <script src="vender/md5.js"></script>
    <script src="vender/app.js"></script>
</head>
<body ng-controller="Home">

	<div class="container">

		<div class="part1"></div>
		
		<div class="part2">
			<div class="wrapper">
				
				<img src="{{weizhuce}}" class="imgbutton" style="float:left;" ng-click="select(1)">
				<img src="{{zhuce}}" class="imgbutton" style="float:right;" ng-click="select(2)">


				<div class="input-line">
					<input type="text" placeholder="姓名" ng-model="rg.name">
				</div>
				<div class="line-sp" ></div>


				<div class="input-line">
					<input type="tel" placeholder="手机号码" ng-model="rg.phone">
				</div>
				<div class="line-sp" ></div>

				
				<div class="input-line" >
					<input type="text" placeholder="图片验证码" ng-model="rg.piccode">
					<div class="pic-code" ng-click="refreshPicCode()" style="background: url({{picimg}}) center ;background-size: cover;">
					</div>
				</div>
				<div class="line-sp" style="width:70%;" ></div>




				<div class="input-line" >
					<input type="tel" placeholder="验证码" ng-model="rg.code">
					<div class="send-code" ng-click="sendAuthCode()">
					    <p style="color:#FF6A3C;font-size:10px;">{{countLabel}}</p>
					</div>
				</div>
				<div class="line-sp" style="width:70%;" ></div>


				<div class="input-line" ng-if="type == 1">
					<input type="password" placeholder="设置密码" ng-model="rg.password">
				</div>
				<div class="line-sp" ng-if="type == 1"></div>

				
				<div class="input-line">
					<input type="text" placeholder="支付宝" ng-model="rg.zhifubao">
				</div>
				<div class="line-sp" ></div>


				<div class="input-line" ng-if="rg.channel.length > 0">
					<input type="text"  readonly="readonly" value="邀请码：{{rg.channel}}" style="background-color:white;">
				</div>
				<div class="line-sp" ng-if="rg.channel.length > 0"></div>


				<div class="input-line2">
					<div class="block">
						省份城市
					</div>
					<div class="block2">
						<select  ng-model="rg.province" ng-change="provinceChanged()">
							<option selected>省份</option>
                        	<option ng-repeat="province in fileData track by $index" value="{{province.pro_id}}">{{province.province}}</option>
                    	</select>
					</div>
					<div class="block2">
						<select  ng-model="rg.city">
							<option selected>城市</option>
                        	<option ng-repeat="city in cityArray track by $index" value="{{city.city_id}}">{{city.cityName}}</option>
                    	</select>
					</div>										
				</div>



			</div>
		</div>
		<div class="part3" ng-click="confirm()"></div>
		

	</div>	
</body>
</html>